<script setup>
import { ref } from 'vue'
import { onLaunch, onShow, onLoad } from '@dcloudio/uni-app'
//引入API

//引入子组件
import Profile from './components/Profile.vue'
import XtxGuess from '@/components/XtxGuess/index.vue'
//引入props

//引入store
//滚动到底部加载更多
const guessRef = ref(null)
const onScrolltolower = async () => {
  guessRef.value.getMore()
}
</script>

<template>
  <view>
    <scroll-view
      scroll-y
      @scrolltolower="onScrolltolower"
      style="height: 100vh"
    >
      <Profile />
      <view class="guess-title">猜你喜欢</view>
      <XtxGuess ref="guessRef" />
    </scroll-view>
  </view>
</template>

<style lang="scss">
.guess-title {
  text-align: center;
  font-size: 32rpx;
  color: #333;
  font-weight: bold;
  padding: 20rpx;
  background-color: #f6f6f6;
  margin-top: 20rpx;
}
</style>
